{% load i18n %}

<h2>{% trans "Bookmarks" %}</h2>

{% if owner.saved_bookmarks.all %}
    <table class="bookmarks narrow">
        {% for bookmark_instance in owner.saved_bookmarks.all.select_related %}
            <tr class="{% cycle odd,even %}">
                <td class="meta">
                    {{ bookmark_instance.saved|date }}
                    {# add who originally added it and when #}
                </td>
                <td>
                    <h2><a href="{{ bookmark_instance.bookmark.url }}">{{ bookmark_instance.description }}</a></h2>
                    <div class="url">{% if bookmark_instance.bookmark.get_favicon_url %}<img src="{{ bookmark_instance.bookmark.get_favicon_url }}" height="16" width="16"/> {% endif %}{{ bookmark_instance.bookmark.url }}</div>
                    <div class="body">{{ bookmark_instance.note|linebreaks }}</div>
                </td>
            </tr>
        {% endfor %}
    </table>
{% else %}
    {% url bookmarks.views.add as add_bookmark_url %}
    <p>{% blocktrans %}You haven't added any <a href="{{ add_bookmark_url }}">bookmarks</a> yet.{% endblocktrans %}</p>
{% endif %}
